import * as articlesApi from '@/api/hmmm/articles'

export default {
  namespaced: true,
  state: {
    articlesList: {}
  },
  mutations: {
    SET_ARTICLES_LIST(state, newValue) {
      state.articlesList = newValue
    },
  },
  actions: {
    async updateArticlesList({ commit }, data) {
      const res = await articlesApi.artlcesList(data);
      commit('SET_ARTICLES_LIST', res);
    },
  },
}
